import React, { Component } from 'react';
import { Upload, Button, Icon } from 'antd';
import constants from '../../common/constants'

const fileList = [{
    uid: -1,
    name: 'xxx.png',
    status: 'done',
    url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
    thumbUrl: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
}, {
    uid: -2,
    name: 'yyy.png',
    status: 'done',
    url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
    thumbUrl: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
}];
const props = {
    data:{token:"test1"},
    action: constants.fileServer,
    listType: 'picture',
    defaultFileList: [...fileList],
};

const props2 = {
    data:{token:"test1"},
    action: constants.fileServer,
    listType: 'picture',
    defaultFileList: [...fileList],
    className: 'upload-list-inline',
};


export default class UploadPage2 extends Component {
    render() {
        return (
            <div>
                <Upload {...props}>
                    <Button>
                        <Icon type="upload" /> upload
                    </Button>
                </Upload>
                <br />
                <br />
                <Upload {...props2}>
                    <Button>
                        <Icon type="upload" /> upload
                    </Button>
                </Upload>
            </div>

        );
    }
}